<?php echo $header;echo $sidebar ?>		

	<div class="span10 content">

		<?php echo $hugemenu ?>

		<h1><?php echo lang('update_tax_rate');?></h1>

		<?php if($this->session->flashdata('message')) :?>
			<div class="alert alert-success">
				<?php echo $this->session->flashdata('message') ?>
			</div>
		<?php endif; ?>
		
		<?php if($message) { echo "<div class=\"alert alert-danger\"><button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>" . $message . "</div>"; } ?>

		<div>
		   	<?php $attrib = array('class' => 'form-horizontal'); echo form_open("admin/invoiceEditTaxRate");?>
		    <div class="form-group">
		      <label for="title"><?php echo $this->lang->line("estate_title"); ?></label>
		      <div class="controls"> <?php echo form_input('name',  $tax_rate->name, 'id="title" class="form-control"');?> </div>
		    </div>
		    <div class="form-group">
		      <label for="type"><?php echo $this->lang->line("sale_tax_rate"); ?></label>
		      <div class="controls controls-row"> <?php echo form_input('rate', $tax_rate->rate, 'class="form-control"'); ?> </div>
		    </div>
		    <div class="form-group">
		      <label for="type"><?php echo $this->lang->line("estate_add_selectbox_type"); ?></label>
		      <div class="controls controls-row">
		        <?php 
      $type = array ('' => $this->lang->line("select").' '.$this->lang->line("type"), '1' => $this->lang->line("percenage").' (%)', '2' => $this->lang->line("fixed").' ($)');
		echo form_dropdown('type', $type, $tax_rate->type, 'class="form-control"'); ?>
		      </div>
		    </div>
		    <div class="control-group">
		      <div class="controls"> <?php echo form_submit('submit', $this->lang->line("update_tax_rate"), 'class="btn btn-primary"');?> </div>
		    </div>
		    <?php echo form_close();?>
		</div>
		
		
	</div><!--/content-->

<?php echo $footer ?>